package com.dxysun.design.delegate;

public class Delegate implements Task
{

	@Override
	public void doTask(String str)
	{

		if("aTask".equals(str))
		{
			new ConcreteA().doTask(str);
		}
		else if("bTask".equals(str))
		{
			new ConcreteB().doTask(str);
		}
	}
}
